﻿using DomainService.IService;
using Microsoft.AspNetCore.Http;
using Model.BusinessModel.OutPut;
using Model.OverallAtuhModel;
using Utility;
using Utility.Enum;

namespace DomainService.Service
{
    /// <summary>
    /// 数据源服务接口实现
    /// </summary>
    public class DataSourceService : IDataSourceService
    {

        /// <summary>
        /// 构造函数
        /// </summary>
        public DataSourceService()
        {
        }

        /// <summary>
        /// 获取流程审批状态
        /// </summary>
        /// <returns></returns>
        public List<SelectOutPut> GetFlowApplyStateList()
        {
            List<SelectOutPut> layuiSelectList = new()
            {
                new SelectOutPut { label = EnumHelper.GetDescription( FlowApplyStateEnum.InExamine), value =((int)FlowApplyStateEnum.InExamine).ToString() },
                new SelectOutPut { label = EnumHelper.GetDescription( FlowApplyStateEnum.AuditPass), value =((int)FlowApplyStateEnum.AuditPass).ToString() },
                new SelectOutPut { label = EnumHelper.GetDescription( FlowApplyStateEnum.AuditRefuse), value =((int)FlowApplyStateEnum.AuditRefuse).ToString() },
                new SelectOutPut { label = EnumHelper.GetDescription( FlowApplyStateEnum.AuditDismissal), value =((int)FlowApplyStateEnum.AuditDismissal).ToString() },
                new SelectOutPut { label = EnumHelper.GetDescription( FlowApplyStateEnum.Cancel), value =((int)FlowApplyStateEnum.Cancel).ToString() },
                new SelectOutPut { label = EnumHelper.GetDescription( FlowApplyStateEnum.Filing), value =((int)FlowApplyStateEnum.Filing).ToString() },
            };
            return layuiSelectList;
        }

    }
}
